#ifndef __PAGE_LIB_HH__
#define __PAGE_LIB_HH__

#include "../Configuration.hh"
#include "tinyxml2.h"
#include <map>
#include <vector>
#include <string>

using namespace tinyxml2;
using std::map;
using std::pair;
using std::vector;
using std::string;

class PageLib 
{
public:
    PageLib();
    void create();
    void store();
private:
    void cleanWebPage(string& webPage, XMLDocument& doc);
    void storePage();
private:
    map<int, pair<size_t, size_t>> _offsetLib;
};

#endif